package design.factory.simple_factory;

public class WuLinSimpleFactory {
    public AbstractCar newCar(String type){
        if("van".equals(type)){
            return new VanCar();
        }else if("mini".equals(type)){
            return new MiniCar();
        }
        return null;
    }
}
